package com.ctshk.rpc.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ctshk.rpc.scenic.dto.ScenicProductListDTO;
import com.ctshk.rpc.system.dto.ScenicDTO;
import com.ctshk.rpc.system.entity.MainDataCollectionDetails;
import com.ctshk.rpc.system.entity.Scenic;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author xuhui
 * @since 1/27/2021
 */
public interface ScenicMapper extends BaseMapper<Scenic> {

    /**
     * 查询所有资源列表
     *
     * @param
     * @param
     * @return
     */
    @Select("<script>"+" select name,id from  t_scenic where is_deleted = 0 \n" +
            "</script>")
    List<ScenicDTO> selectScenicList();


    @Select("<script>"+" select * from  t_scenic where is_deleted = 0  and  id  in (${ids})\n" +
            "</script>")
    List<Scenic> quertByids(@Param("ids") String ids);

}
